package com.zmn.oms.common.dto;

/**
 * 执行结果分页对象
 * @param <T>
 */
public class PageResultDTO<T> extends ResultDTO<T> {
    /**
     * 总条数
     */
    private Integer count;

    public PageResultDTO() {
        super();
    }

    public PageResultDTO(boolean statusBool, T data) {
        super(statusBool, data);
    }

    public static PageResultDTO success(Object data, Integer count) {
        PageResultDTO resultDTO = new PageResultDTO(true, data);
        resultDTO.setCount(count);
        return resultDTO;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
